<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="static/css/mui.css" rel="stylesheet" />
		<link href="static/css/index.css" rel="stylesheet" />
		<script src="static/js/mui.js"></script>
		<script src="static/js/jquery.js"></script>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">我的事务</h1>
		</header>
		<style type="text/css">
			 * { touch-action: pan-y; } 
		</style>
	</head>

	<body>
		<div class="mui-content">
			<iframe name="my_iframe" src="<%=path%>/include/home.jsp" width="100%" height="1000px"></iframe>
		</div>



		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item mui-active" id="home" name="index" target="my_iframe" href="<%=path%>/include/home.jsp">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" id="shiwu" target="my_iframe" href="<%=path%>/public/shiwu">
				<span class="mui-icon mui-icon-compose"></span>
				<span class="mui-tab-label">事务</span>
			</a>
			<a class="mui-tab-item" id="my" target="my_iframe" href="<%=path%>/include/my.jsp">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>
	</body>

	<script>
		mui('body').on('tap', 'a', function(e) {
			var _target = this.getAttribute("href");
			var _iframe=$("iframe");
			if(_iframe.attr('src')==_target) return;
			// alert(_target);
			_iframe.attr("src", _target);
		});

/* 		$(function() {
			$("#display").click(function() {
				document.location.href = this.href;
			});
			$("#home").click(function() {
				document.location.href = this.href;
			});
		}); */
	</script>
</html>
